<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>


<!--  v-show 使元素影藏  使用了 display="none" -->
<div id="app">
  <h2 v-show="isShow">{{message}}</h2>
</div>
<!-- vue js库-->
<script src="../vue.js"></script>

<script>

    var app = new Vue({
        el: '#app',
        data: {
            message: 'Hello Vue!',
            isShow: true,
        }
    })
</script>
</body>
</html>